package com.atguigu.atcrowdfunding.manager.dao;

import com.atguigu.atcrowdfunding.bean.Role;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface RoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Role record);

    Role selectByPrimaryKey(Integer id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

    List<Role> queryPage(Map<String, Object> paramMap);

    Integer queryCount(Map<String, Object> paramMap);

    int deleteByRoleId(Integer roleId);

    int saveRolePermissionRelationship(@Param("roleId") Integer roleId, @Param("ids") Integer[] ids);

    Role queryRoleById(Integer id);
}